//
//  CompositCollectionViewCell.m
//  MansApp
//
//  Created by lanou3g on 15/7/13.
//  Copyright (c) 2015年 ACH. All rights reserved.
//

#import "CompositCollectionViewCell.h"

@interface CompositCollectionViewCell ()
@property(nonatomic,strong)UIView *view;
@end
@implementation CompositCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {

       
        self.compositImageView = [[UIImageView alloc]initWithFrame:CGRectMake(1, 0, kWidth / 3 - 2, kWidth/ 3 -1)];
        self.compositLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, kWidth / 3 - kP6Height(20), kWidth / 3,kP6Height(20) )];

        self.backgroundColor = [UIColor clearColor];
//        self.view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kWidth / 3 , kWidth/ 3 - 10)];
//        self.view.backgroundColor = [UIColor clearColor];
        self.compositImageView = [[UIImageView alloc]initWithFrame:CGRectMake((kWidth / 3 - kP6Height(64))/ 2,kP6Height(10), kP6Height(64) , kP6Height(64))];
//        self.compositImageView.center =self.view.center;
        self.compositImageView.layer.masksToBounds = YES;
        [self.compositImageView.layer setCornerRadius:kP6Height(32)];
        self.compositLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, kP6Height(80), kWidth / 3,kP6Height(20) )];
//        self.compositLabel.backgroundColor = [UIColor redColor];
        self.compositLabel.font =  [UIFont fontWithName:@"TrebuchetMS-Italic" size:15];

        self.compositLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.compositImageView];
        [self.contentView addSubview:self.compositLabel];
        
        
    }
    
    
    return self;
}


@end
